/*
 * @Author: cgl
 * @Date: 2023-04-20 09:49:21
 * @LastEditors: cgl
 * @LastEditTime: 2023-04-24 09:46:55
 * @FilePath: \public-health-emergencies-fed:\radiation-hygiene-fe\src\api\person\entrustEquipment.js
 * @Description: 
 * 
 * Copyright (c) 2023 by cgl/微盛信息产业有限公司, All Rights Reserved. 
 */
import request from '@/utils/request'

// 查询委托单位设备分页列表
export function entrustEquipmentList(data) {
  return request({
    url: '/basic/entrust/equipment/list',
    method: 'post',
    data,
  })
}
// 导出委托单位设备列表
export function entrustEquipmentExport(data) {
  return request({
    url: `/basic/entrust/equipment/export`,
    method: "post",
    data,
  });
}
// 查询委托单位设备列表
export function entrustEquipmentListing(params) {
  return request({
    url: '/basic/entrust/equipment/listing',
    method: 'get',
    params,
  })
}
// 获取委托单位设备详细信息
export function entrustEquipmentDetail(equipmentId) {
  return request({
    url: '/basic/entrust/equipment/getInfo/' + equipmentId,
    method: 'get'
  })
}
// 新增委托单位设备
export function entrustEquipmentAdd(data) {
  return request({
    url: `/basic/entrust/equipment/add`,
    method: "post",
    data,
    headers: {
			isLoading: true,
		}
  });
}
// 修改委托单位设备
export function entrustEquipmentEdit(data) {
  return request({
    url: '/basic/entrust/equipment/edit',
    method: 'post',
    data,
    headers: {
			isLoading: true,
		}
  })
}
// 删除委托单位设备
export function entrustEquipmentDelete(equipmentIds) {
  return request({
    url: '/basic/entrust/equipment/delete/' + equipmentIds,
    method: 'get',
    headers: {
			isLoading: true,
		}
  })
}


// 查询委托单位设备列表全部
export function entrustEquipmentListAll(params) {
  return request({
    url: '/basic/entrust/equipment/listing',
    method: 'get',
    params: params
  })
}
// 修改委托单位设备点位图
export function editEntrustEquipmentPointImage(data) {
  return request({
    url: '/basic/entrust/equipment/editPosition',
    method: 'put',
    data,
  })
}